//
//  NSString+StringFromDate.m
//  代号：47
//
//  Created by 杨佩璋 on 15/7/4.
//  Copyright (c) 2015年 杨佩璋. All rights reserved.
//

#import "NSString+StringFromDate.h"

@implementation NSString (StringFromDate)

+ (NSString *)stringByDate:(NSDate *)date{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    [formatter setDateFormat:@"yyyy-MM-dd HH:mm"];
   return [formatter stringFromDate:date];
}

@end
